/***************************
FIGURE 2: Female Ratio
***************************/

clear
use female_ratio.dta

* house
graph hbar dem rep if house ==1, over(rank) graphregion(color(white)) ytitle("Female Staff Ratio") ///
	  bar(1, bcolor(gs12))             ///
      bar(2, bcolor(gs6))              ///
      legend(row(1) order(1 "Democrat" 2 "Republican")) 

* senate
graph hbar dem rep if house ==0, over(rank) graphregion(color(white)) ytitle("Female Staff Ratio") ///
	  bar(1, bcolor(gs12))             ///
      bar(2, bcolor(gs6))              ///
      legend(row(1) order(1 "Democrat" 2 "Republican")) 

